import request from '@/utils/request'
import url from './url'

export function createSettingApi(data) {
  return request({
    url: url.createSettingUrl,
    method: 'post',
    data
  })
}

export function updateSettingApi(data) {
  return request({
    url: url.updateSettingUrl,
    method: 'post',
    data
  })
}

export function deleteSettingApi(data) {
  return request({
    url: url.deleteSettingUrl,
    method: 'post',
    data
  })
}

export function getSettingListApi(data) {
  return request({
    url: url.getSettingListUrl,
    method: 'get',
    params: data
  })
}

export function getSettingApi(data) {
  return request({
    url: url.getSettingUrl,
    method: 'get',
    params: data
  })
}
